package v1

import (
	"SSO/controllers/sso"
	"github.com/gin-gonic/gin"
)

type SSO struct {}

func (SSO) Register(router *gin.RouterGroup){
	ssoController := sso.SSO{}
	ssoV1 := router.Group("/sso")

	{
		//登录页面
		ssoV1.GET("/login", ssoController.LoginView)

		//登录操作
		ssoV1.POST("/login", ssoController.Login)

		//验证uid是否存在
		ssoV1.POST("/verify/uid", ssoController.VerifyUid)
	}

}